﻿namespace ASmile.Setter
{
    class Config
    {
        static Config()
        {
            Settings = ConfigHelper.GetAppSettings<AppSetings>();
        }

        public static AppSetings Settings { get; set; }

        public class AppSetings
        {
            public string DbType { set; get; } = "sqlserver";

            public string DbConnStr { set; get; } = $"Server=.;Database=ASmile;integrated security=true";

            public string ClientId { set; get; }

            public string DefRoleId { set; get; } = "00";

            public string DefLoginName { set; get; } = "admin";

            public string DefLoginPwd { set; get; } = "123";
        }
    }
}